package com.ynet.middleground.riskmanage.bean.newrizhaogang;

import com.ynet.core.common.BaseReqObj;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * @author songyf
 * @description 控货(解除)指令
 * @date 2022-05-12 15:42
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "新日照港控货(解除)指令请求信息", description = "新日照港控货(解除)指令请求信息")
public class NewRzgControlCargoReq extends BaseReqObj {

    private static final long serialVersionUID = -1581848975032973097L;

    @ApiModelProperty(value = "货键（在港货物id）", notes = "货键（在港货物id）", required = true)
    @NotBlank(message = "货键不能为空")
    private String cargokey;

    @ApiModelProperty(value = "控货数/解除控货数(烟台港：3位小数；日照港：吨)", notes = "控货数/解除控货数(烟台港：3位小数；日照港：吨)", required = true)
    @NotBlank(message = "控货数/解除控货数不能为空")
    private String shl;

    @ApiModelProperty(value = "操作(0:控货，1:解除控货)", notes = "操作(0:控货，1:解除控货)", required = true)
    @NotBlank(message = "操作不能为空")
    private String operate;

    @ApiModelProperty(value = "操作日期（烟台港专用：yyyy-MM-dd HH:mm:ss）,请求烟台港必填",
        notes = "操作日期（烟台港专用：yyyy-MM-dd HH:mm:ss）,请求烟台港必填")
    private String czri;

    @ApiModelProperty(value = "备注（烟台港专用）", notes = "备注（烟台港专用）")
    private String remark;

    @ApiModelProperty(value = "控货指令id，解除控货必填(日照港专用)", notes = "控货指令id，解除控货必填(日照港专用)")
    private String ctrlid;

    @ApiModelProperty(value = "系统标志(0:日照港1:青岛港前湾港2:烟台港)", notes = "系统标志(0:日照港1:青岛港前湾港2:烟台港)", required = true)
    @NotBlank(message = "系统标志不能为空")
    private String chanType;

    @ApiModelProperty(value = "作业委托人ID（烟台港专用）", notes = "作业委托人ID（烟台港专用）")
    private String customerId;

    @ApiModelProperty(value = "作业委托人全称（烟台港专用）", notes = "作业委托人全称（烟台港专用）")
    private String fullName;

}
